import {Component} from "@angular/core";
import {_if} from "rxjs/observable/if";

/**
 * Created by ZE-C on 2017/8/12.
 */


@Component({
  selector: 'single',
  template: `
    <div class="z-box">
      single
      
      <a routerLink="/page1" routerLinkActive="active">to page1</a>
      <a routerLink="/page2" routerLinkActive="active">to page2</a>
      
      <button routerLink="/page1" >to page1</button>
  <!--    <label>{{'123' | ToNum }}</label>
      
      <div><input class="" [(ngModel)]="toinput">
        <div>
          <label>input:  {{_input}}</label>
        </div>
        <div>
          <label>afterinput:  {{inputstra}}</label>
        </div>
      </div>-->
    </div>
  `,
  styleUrls: []
})
export class SingleComponent {
  name: string;





  /*
   _input:string;

   set toinput(para){
   this._input = 'setted' + para
   };


   get inputstra(){
   return 'getted' + (this._input || '')
   };*/
}




